<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <style>
      .banner {
        width: 100%;
        height: 100vh;
        text-align: center;
        overflow: hidden;
        position: relative;
      }
      .banner .slider {
        position: absolute;
        width: 100px;
        height: 150px;
        top: 10%;
        left: calc(50% - 100px);
        transform-style: preserve-3d;
        transform: perspective(1000px);
        animation: autoRun 20s linear infinite;
      }
      .banner .slider .item {
        position: absolute;
        inset: 0 0 0 0;
        transform: rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg))
          translateZ(550px);
      }
      .banner .slider .item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      @keyframes autoRun {
        from {
          transform: perspective(1000px) rotateX(-16deg) rotateY(0deg);
        }
        to {
          transform: perspective(1000px) rotateX(-16deg) rotateY(360deg);
        }
      }
    </style>
  </head>

  <body>
    <div class="banner">
      <div class="slider" style="--quantity: 10">
        <div class="item" style="--position: 1">
          <img src="./images/1.jpeg" alt="" />
        </div>
        <div class="item" style="--position: 2">
          <img src="./images/2.jpeg" alt="" />
        </div>
        <div class="item" style="--position: 3">
          <img src="./images/3.jpeg" alt="" />
        </div>
        <div class="item" style="--position: 4">
          <img src="./images/4.jpeg" alt="" />
        </div>
        <div class="item" style="--position: 5">
          <img src="./images/5.jpeg" alt="" />
        </div>
        <div class="item" style="--position: 6">
          <img src="./images/1.jpeg" alt="" />
        </div>
        <div class="item" style="--position: 7">
          <img src="./images/2.jpeg" alt="" />
        </div>
        <div class="item" style="--position: 8">
          <img src="./images/3.jpeg" alt="" />
        </div>
        <div class="item" style="--position: 9">
          <img src="./images/4.jpeg" alt="" />
        </div>
        <div class="item" style="--position: 10">
          <img src="./images/5.jpeg" alt="" />
        </div>
      </div>
    </div>
  </body>
</html>
